﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XiaoMan.Log
{
    public class LoggerManager
    {
        static log4net.ILog log = log4net.LogManager.GetLogger("SystemExceptionLogger");//获取一个日志记录器
        #region 异常记录
        /// <summary>
        /// 记录系统异常
        /// </summary>
        /// <param name="ex"></param>
        public static void LogSysException(System.Exception ex)
        {
            log.Info(ex);//写入一条新log
        }
        #endregion

    }
}
